/**
	韩飞 监察共用 js
**/

//选择条件
function doChoose(daid , daname , daflag){
	if(daflag == 'dep'){
		document.all.depid.value = daid;
		document.all.depname.value = daname;
		document.all.appid.value = '';
		document.all.appname.value = '';
	}else{
		document.all.appid.value = daid;
		document.all.appname.value = daname;
	}
	document.all.search.value = 'sel';
	document.forms[0].submit();
}
//去掉已选条件
function doRemove(daid , daname, daflag){
	if(daflag == 'dep'){
		document.all.depid.value = '';
		document.all.depname.value = '';
	}else{
		document.all.appid.value = '';
		document.all.appname.value = '';
	}
	document.forms[0].submit();
}
//收起 更多 操作方法
function openShutManager(oSourceObj,oTargetObj,shutAble,oOpenTip,oShutTip){
	var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
	var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
	var openTip = oOpenTip || "";
	var shutTip = oShutTip || "";
	if(targetObj.style.display!="none"){
		if(shutAble) return;
		targetObj.style.display="none";
		if(openTip  &&  shutTip){
			sourceObj.innerHTML = shutTip; 
		}
	} else {
		targetObj.style.display="block";
		if(openTip  &&  shutTip){
			sourceObj.innerHTML = openTip; 
		}
	}
	return false;
}
